package com.fare.taluo.queue;

import com.dayatang.domain.InstanceFactory;
import com.fare.taluo.application.queue.IScheduleQueueApplication;
import com.fare.taluo.application.queue.QueueFreightPriceWarnApplication;
import com.fare.taluo.queue.template.ScheduleQueueTemplate;
import com.fare.taluo.vo.queue.FreightPriceWarnVO;
/**
 * 运价预警队列实现类
 * @author creator: xiangsf
 * @author modifior: xiangsf
 * @since 2012-12-20-上午8:45:26
 * @version v1.0
 */
public class ScheduleQueueFreightPriceWarn extends ScheduleQueueTemplate<ScheduleQueueFreightPriceWarn, FreightPriceWarnVO> {

	public final static String SCHEDULE_QUEUE_ID = "freightPriceWarn";
	
	private FreightPriceWarnVO vo = null;
	
	@Override
	public IScheduleQueueApplication<FreightPriceWarnVO> getApplication() {
		return InstanceFactory.getInstance(QueueFreightPriceWarnApplication.class, "queueFreightPriceWarnApplication");
	}

	@Override
	public ScheduleQueueFreightPriceWarn delegate(FreightPriceWarnVO vo) {
		return new ScheduleQueueFreightPriceWarn().setVo(vo);
	}

	@Override
	public FreightPriceWarnVO getDelegateSource() {
		return vo;
	}

	public FreightPriceWarnVO getVo() {
		return vo;
	}

	public ScheduleQueueFreightPriceWarn setVo(FreightPriceWarnVO vo) {
		this.vo = vo;
		return this;
	}

	
}
